<header class="qw-header-inicial">

    <div class="gw-barra">
        <span class="barra"><?php echo $this->parametros['PAR_EML'];?> / <?php echo $this->parametros['PAR_END'];?></span>
    </div>

    <nav class="gw-menu">
        <ul>
            <li class="logo">
                <a href="#home" class="go_pag">
                    <img src="<?php echo $this->urlbase;?>/public/media/images/logo_guapoweb.png" alt="<?php echo $this->titulo;?>">
                    <h1 class="descricao">
                        <span class="titulo">Guapo Web</span>
                        <span class="sub-titulo">Soluções para internet</span>
                    </h1>
                </a>
            </li>
            <?php /*
            <li><a href="#quem-somos" class="go_pag">Quem somos</a></li>
            <li><a href="#servicos" class="go_pag">Serviços</a></li>
            <li><a href="#contato" class="go_pag">Contato</a></li>
            */?>
            <?php foreach($this->paginasite as $pag) { ?>
            <li><a href="#<?php echo $pag['PGS_PAGREF']?>" class="go_pag"><?php echo $pag['PGS_NOMMEN']?></a></li>
            <?php } ?>

        </ul>
    </nav>
</header>
 
<section id="pg-home" class="gw-pagina">
    <h2 style="display: none">Sua empresa na internet</h2>
    
    <?php
    $link = '';
    $posicao = '68';
    foreach($this->fullbanner as $key => $obj) {
        $img = glob('public/upload/fullbanner/'.$obj['BAN_ID'].'.*');
        @$img = $img[0];
        $style = '';
        $class = '';
        
        if($key > 0) $style = 'display: none;';
        if($key == 0) $class = 'class="action"';
        
        $alink .= '<a '.$class.' id="lnkb'.$key.'" itemref="bimg'.$key.'" itemid="'.$key.'" href="javascript:void(0)"></a>';
        $imgs .= '<img id="bimg'.$key.'" src="'.$this->urlbase.'/'.str_replace('.','_sld.',$img).'" style="margin-left: '.$posicao.'px" alt="'.$obj['BAN_DSC'].'" >';
        $posicao += 34; 
    /*
    <div id="banner0" class="gw-banner" style="background-image: url(<?php echo $this->urlbase;?>/public/media/images/home.jpg);"></div>
    */
        if(strlen($obj['BAN_LNK']) > 0) echo '<a href="'.$obj['BAN_LNK'].'" class="go_pag">';    
    ?>
    <div id="banner<?php echo $key; ?>" class="gw-banner" style="background-image: url('<?php echo $this->urlbase.'/'.$img; ?>');<?php echo $style; ?>"></div>
    <?php 
        if(strlen($obj['BAN_LNK']) > 0) echo '</a>';
    } 
    ?>
</section>

<?php foreach($this->paginasite as $pag) { 
    if(strlen($pag['PGS_PAGEST']) == 0){ 
?>
<section id="pg-<?php echo $pag['PGS_PAGREF']?>" class="gw-pagina">
    <div class="conteudo">
        <h2 class="titulo"><?php echo $pag['PGS_NOM']?></h2>
        <div class="texto">
        <?php echo $pag['PGS_TXT']?>    
        </div>
    </div>
</section>
<?php } else{ 
    
switch($pag['PGS_PAGEST']) { // paginas criadas
    case 'contato': ?>

<section id="pg-<?php echo $pag['PGS_PAGREF']?>" class="gw-pagina gw-contato">
    <div class="conteudo">
        <h4 class="titulo"><?php echo $pag['PGS_NOM']?></h4>
        <div class="texto">
            <form id="form_contato" method="post" >
                <div class="row">
                    <div class="col3">
                        <label>Nome</label>
                        <input type="text" name="nome" class="" required="" />
                    </div>
                    <div class="col3">
                        <label>Empresa</label>
                        <input type="text" name="empresa" class="" required="" />
                    </div>
                    <div class="col3">
                        <label>E-mail</label>
                        <input type="email" name="email" class="" required="" />
                    </div>
                </div>
                
                <div class="row">
                    <div class="col2">
                        <label>Qual seu telefone para contato</label>
                        <input type="tel" name="telefone" class="" required="" />
                    </div>
                    <div class="col2">
                        <label>Cidade / UF</label>
                        <input type="text" name="cidade" class="" required="" />
                    </div>
                </div>
                
                <div class="row">
                    <div class="col1">
                        <label>Mensagem</label>
                        <textarea name="mensagem" required=""></textarea>
                    </div>
                </div>
                
                <div class="row">
                    <div class="col12">
                        <label>Deseja nos enviar um resumo do projeto?</label>
                        <textarea name="projeto"></textarea>
                    </div>
                    <div class="submit">
                        <input type="submit" name="enviar" value="enviar" />
                    </div>
                </div>
                
            </form>
            
            <div class="dados_contato">
                <ul>
                    <?php /*<li><span class="icon i_telefone"></span> <?php echo $this->parametros['PAR_TEL'];?></li> */?>
                    <li><span class="icon i_email"></span> <?php echo $this->parametros['PAR_EML'];?></li>
                    <li><span class="icon i_www"></span> <a href="<?php echo $this->urlbase;?>"><?php echo $_SERVER['HTTP_HOST']?></a></li>
                </ul>
            </div>
            
        </div>
    </div>
</section>  
<?php
    break;
} // switch
?>
    
<?php } // else
} // foreeach
?>

<footer></footer>
